os.loadAPI("api/cfg")

conf = cfg.load("chest_monitor")
if conf.monitored_chests == nil then
	conf.monitored_chests = []
end

cfg.save("chest_monitor")
print(tostring(json))
for k, v in pairs(json) do
	print(" * "..tostring(k)..": "..tostring(v))
end
for k, v in pairs(json.decode("[1,563]")) do
	print(" * "..tostring(k)..": "..tostring(v))
end
